/**
 * There are <a href="https://github.com/thinkgem/jeesite">JeeSite</a> code generation
 */
package com.chlitina.store.modules.sms.dao;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Component;

import com.chlitina.store.common.persistence.BaseDao;
import com.chlitina.store.common.persistence.BaseDaoImpl;
import com.chlitina.store.modules.sms.entity.SmsTemplate;

/**
 * 短信顾客模板DAO接口
 * @author liujiang
 * @version 2013-06-21
 */
public interface SmsTemplateDao extends SmsTemplateDaoCustom, CrudRepository<SmsTemplate, Long> {

	@Query("from SmsTemplate where template_code=?1")
	public SmsTemplate getByCode(String code);
}

/**
 * DAO自定义接口
 * @author liujiang
 */
interface SmsTemplateDaoCustom extends BaseDao<SmsTemplate> {

}

/**
 * DAO自定义接口实现
 * @author liujiang
 */
@Component
class SmsTemplateDaoImpl extends BaseDaoImpl<SmsTemplate> implements SmsTemplateDaoCustom {

}
